<template>
	<view class="container">
		<view class="header" style="background-image: url('/static/bac1.png')">
			<view class="zhanwei">

			</view>
			<view class="userInfo" @click="toLogin">
				<view class="photo">
					<image style="width: 90rpx;height: 90rpx;	border-radius: 34rpx;" src="/static/001_我的.png" mode=""></image>
				</view>
				<view class="text">
					<view class="line1">
						Hello，俩哈哈
					</view>
					<view class="line2">
						管理员
					</view>
				</view>
			</view>
			<view class="nav">
				<view class="left" style="width: 100px;border: none;">
					<uni-data-select :clear="false" v-model="value" :localdata="range" @change="change">
					</uni-data-select>
				</view>
				<view class="right" style="display: flex;">
					历史记录 <u-icon name="arrow-right"></u-icon>
				</view>
			</view>
		</view>
		<view class="contents">
			<view class="dataItem" @click="itemDetial()">
				<view class="itemTitle">
					<view class="photo">
						<image src="../../static/001_我的.png" style="width: 60rpx;height: 60rpx;border-radius: 30rpx;"
							mode=""></image>
					</view>
					<view class="applyTitle">
						一组申请
					</view>
				</view>
				<view class="content">
					<view class="applyData">
						<text class="text">申请时间：</text>2023.11.09 09:00
					</view>
					<view class="applyNum">
						<text class="text">申请人数：</text>5
					</view>
					<view class="btns">
						<view class="reback">
							驳回
						</view>
						<view class="pass">
							通过
						</view>
					</view>
				</view>
			</view>

			<view class="dataItem">
				<view class="itemTitle">
					<view class="photo">
						<image src="../../static/001_我的.png" style="width: 60rpx;height: 60rpx;border-radius: 30rpx;"
							mode=""></image>
					</view>
					<view class="applyTitle">
						一组申请
					</view>
				</view>
				<view class="content">
					<view class="applyData">
						<text class="text">申请时间：</text>2023.11.09 09:00
					</view>
					<view class="applyNum">
						<text class="text">申请人数：</text>5
					</view>
					<view class="btns">
						<view class="reback">
							驳回
						</view>
						<view class="pass">
							通过
						</view>
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				value: 0,
				range: [{
						value: 0,
						text: "我审批的"
					},
					{
						value: 1,
						text: "早班审批"
					},
					{
						value: 2,
						text: "中班审批"
					},
					{
						value: 2,
						text: "晚班审批"
					},
				],
			}
		},
		methods: {
			toLogin() {
				console.log(555);
				uni.navigateTo({
					url: '/pages/login/login'
				})
			},
			change(e) {
				console.log("e:", e);
			},
			itemDetial() {
				uni.navigateTo({
					url: '/pages/index/detial'
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
	.container {
		box-sizing: border-box;
		background-color: #F7FBFE;
		height: 100vh;

		.header {
			.zhanwei {
				height: 200rpx;
				;
			}

			padding: 0 44rpx 0 44rpx;
			width: 100%;
			height: 450rpx;
			background-repeat: no-repeat;
			background-size: 100%;
			box-sizing:border-box;

			.userInfo {

				display: flex;

				.photo {
					margin-right: 20rpx;
					width: 90rpx;
					height: 90rpx;
					border-radius: 34rpx;
					border: 3rpx solid #FFFFFF;
				}

				.text {
					.line1 {
						font-size: 36rpx;
						font-family: PingFangSC-Semibold, PingFang SC;
						font-weight: 600;
						color: #253D63;
					}

					.line2 {
						font-size: 24rpx;
						font-family: PingFangSC-Semibold, PingFang SC;
						font-weight: 600;
						color: #253D63;
					}
				}
			}

			.nav {
				// width: 100%;
				// position: absolute;
				// top: 350rpx;
				height: 50rpx;
				margin-top: 20rpx;
				display: flex;
				justify-content: space-between;

				.right {
					line-height: 50rpx;
					font-size: 30rpx;
					font-family: PingFangSC-Regular, PingFang SC;
					font-weight: 400;
					color: #253D63;
				}

				.left {
					font-size: 32rpx;
					font-family: PingFangSC-Semibold, PingFang SC;
					font-weight: 600;
					color: #333333;
				}
			}
		}
		.contents{
			padding: 0 44rpx 40rpx 44rpx;
		}
		.dataItem {
			padding-bottom:40rpx;
			background: #FFFFFF;
			border-radius: 20rpx;
			margin-bottom: 40rpx;

			.itemTitle {
				background: linear-gradient(270deg, #FFFFFF 0%, #EAF9FB 100%);
				height: 96rpx;
				width: 100%;
				line-height: 96rpx;
				display: flex;
				align-items: center;

				.photo {
					width: 60rpx;
					height: 60rpx;
					border-radius: 30rpx;
					border: 3rpx solid #FFFFFF;
					margin-left: 20rpx;
				}

				.applyTitle {
					margin-left: 12rpx;
					font-size: 32rpx;
					font-family: PingFangSC-Medium, PingFang SC;
					font-weight: 600;
					color: #333333;
				}
			}

			.content {
				padding: 0 20rpx;

				.applyData {
					height: 40rpx;
					font-size: 28rpx;
					font-family: PingFangSC-Regular, PingFang SC;
					font-weight: 400;
					color: #666666;
					line-height: 40rpx;
					margin-top: 14rpx;

					.text {
						color: #333333;
					}
				}

				.applyNum {
					margin-top: 20rpx;
					height: 40rpx;
					font-size: 28rpx;
					font-family: PingFangSC-Regular, PingFang SC;
					font-weight: 400;
					color: #666666;
					line-height: 40rpx;

					.text {
						color: #333333;
					}
				}

				.btns {
					display: flex;
					justify-content: space-between;
					width: 50%;
					margin: 20rpx 0 0 0;

					.reback {
						width: 140rpx;
						height: 52rpx;
						border-radius: 26rpx;
						border: 2rpx solid #E7E7E7;
						line-height: 52rpx;
						text-align: center;
						font-size: 28rpx;
						font-family: PingFangSC-Semibold, PingFang SC;
						font-weight: 600;
						color: #999999;
					}

					.pass {
						width: 140rpx;
						height: 52rpx;
						background: linear-gradient(270deg, #4484FF 0%, #004CDF 100%);
						border-radius: 30rpx;
						line-height: 52rpx;
						text-align: center;
						font-size: 28rpx;
						font-family: PingFangSC-Semibold, PingFang SC;
						font-weight: 600;
						color: #FFFFFF;
					}
				}
			}
		}
	}
</style>
